<?php include Kohana::find_file('classes', 'util');?>
<!-- Seednia home -->

<script type="text/javascript">
// FYI jQuery: multiple $(document).ready() is possible.
$(document).ready(function() {
	initHomeForm();
});
</script>

<div id="user_signup">
Sign up! It's free!

	<form id="FormSignup" name="FormSignup" method="post" action="<?php echo WEBCONTEXT; ?>/index.php/User/signup" >
	<table>
		<tbody>
			<tr>
				<td>First Name</td>
				<td><input type="text" id="firstName" name="firstName" /></td>
			</tr>
			<tr>
				<td>Last Name</td>
				<td><input type="text" id="lastName" name="lastName" /></td>
			</tr>
			<tr>
				<td>Email</td>
				<td><input type="text" id="email" name="email" /></td>
			</tr>
			<tr>
				<td>Password</td>
				<td><input type="password" id="password" name="password"  /></td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td>By clicking Sign Up, you agree to our Terms and that you have read and understand our Data Use Policy.</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td><input type="submit" name="submit" class="button" id="submit_btn" value="Sign Up" /></td>
			</tr>
			<?php if ($sessionInfo->errorMessage != null) { ?>
			<tr>
				<td colspan="2"><div style="color:red"><?php echo $sessionInfo->errorMessage; ?></div></td>
			</tr>
			<?php } ?>
		</tbody>
	</table>
	</form>
</div>

</div>